package com.yhb.channel.dao.ANYPAY.DHL;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AnyPayChannelBoundRelationshipDHLMapper {
    int insert(
            @Param("record") AnyPayChannelBoundRelationshipDHLRecord record
    );

    String selectBillingCardIdByUserId(
            @Param("userId") String userId
    );

    AnyPayChannelBoundRelationshipDHLRecord getBillingCardRecordByUserId(
            @Param("userId") String userId
    );

    AnyPayChannelBoundRelationshipDHLRecord getRecordByCardId(
            @Param("cardId") String cardId
    );

    // 根据userId修改结算卡信息
    int updateByUserId(
            @Param("record") AnyPayChannelBoundRelationshipDHLRecord record
    );

    int updateByCardId(
            @Param("record") AnyPayChannelBoundRelationshipDHLRecord record
    );

    List<AnyPayChannelBoundRelationshipDHLRecord> getAllRecordByUserId(
            @Param("userId") String userId
    );
}
